<%@ page language="java" isErrorPage="true" import="java.io.*"  %>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<jsp:directive.page import="org.apache.commons.logging.*"/>
<%@ page import="java.io.PrintWriter" %>
<%@ page import="java.io.StringWriter" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<body id="error">
<div id="page">
    <div id="content" class="clearfix">
        <div id="main">
            <h1>Error</h1>
            <%-- Exception Handler --%>
            <font color="red">
                <%= exception.toString() %><br>
            </font>

            <%
                out.println("<!--");
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                exception.printStackTrace(pw);
                out.print(sw);
                sw.close();
                pw.close();
                out.println("-->");
            %>
        </div>
    </div>
</div>
</body>